package cn.sunlelin.educationserver.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Taskscore {
    private Integer taskscoreId;
    private Integer userId;
    private Integer taskId;
    private String content;
    private Float score;
    private String scoreContent;
    private String scoreFlag;
    private Integer submitNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS", timezone = "Asia/Shanghai")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS", timezone = "Asia/Shanghai")
    private Date updateTime;
    private String delFlag;

    public Taskscore() {
    }

    public Taskscore(Integer taskscoreId, Integer userId, Integer taskId, String content, Float score, String scoreContent, String scoreFlag, Integer submitNum, Date createTime, Date updateTime, String delFlag) {
        this.taskscoreId = taskscoreId;
        this.userId = userId;
        this.taskId = taskId;
        this.content = content;
        this.score = score;
        this.scoreContent = scoreContent;
        this.scoreFlag = scoreFlag;
        this.submitNum = submitNum;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.delFlag = delFlag;
    }

    public Integer getTaskscoreId() {
        return taskscoreId;
    }

    public void setTaskscoreId(Integer taskscoreId) {
        this.taskscoreId = taskscoreId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public String getScoreContent() {
        return scoreContent;
    }

    public void setScoreContent(String scoreContent) {
        this.scoreContent = scoreContent;
    }

    public String getScoreFlag() {
        return scoreFlag;
    }

    public void setScoreFlag(String scoreFlag) {
        this.scoreFlag = scoreFlag;
    }

    public Integer getSubmitNum() {
        return submitNum;
    }

    public void setSubmitNum(Integer submitNum) {
        this.submitNum = submitNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "Taskscore{" +
                "taskscoreId=" + taskscoreId +
                ", userId=" + userId +
                ", taskId=" + taskId +
                ", content='" + content + '\'' +
                ", score=" + score +
                ", scoreContent='" + scoreContent + '\'' +
                ", scoreFlag='" + scoreFlag + '\'' +
                ", submitNum=" + submitNum +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
